package com.leo.blog.service;

import com.leo.blog.dto.BlackIpExecution;
import com.leo.blog.entity.BlackIp;
import com.leo.blog.exceptions.BlackIpOperationException;

public interface BlackIpService {
	BlackIpExecution addBlackIp(String name, BlackIp blackIp) throws BlackIpOperationException;
	BlackIpExecution addSelective(BlackIp blackIp) throws BlackIpOperationException;
	
	BlackIpExecution getBlackIpById(int blackId);
	BlackIpExecution getBlackIpByIp(String blackIp);
	
	BlackIpExecution updateBlackIpById(BlackIp blackIp);
	BlackIpExecution updateBlackIpByIpSelective(BlackIp blackIp);

	BlackIpExecution deleteBlackIpByVid(String name, int  blackVid);
    
    /**
     * 模糊查询
     * @param 
     * @return
     */
	BlackIpExecution getBlackIpListByPage(BlackIp blackIpCondition, int pageIndex, int pageSize );
    //int getBlackIpListCount(BlackIp blackIpCondition);
    
	BlackIpExecution getAllBlackIpCount();
}
